function a=coefLagr1(x,y)
% calcul coeficienti polinom Lagrange
x = x(:);
n = length(x); % grad polinom n-1
V = ones(n,n);
for j=2:n
	V(:,j) = V(:,j-1).* x;
endfor

a = V \ y';

endfunction